package com.zh.chat.entity;

import java.util.Date;

/**
 * 
 * @author Thomas
 * @date:2013-2-17
 */
public class User implements java.io.Serializable {

	private long sysId;
	private String userPwd;
	private String nickname;
	private String sex;
	private Date birthday;
	private String name;
	private Date registerDate;
	private Date lastLoginDate;
	private String image;
	private Integer status;
	private Integer clientPort;
	private Integer clientFilePort;
	private String clientIp;

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String userPwd, String nickname, Date registerDate,
			Date lastLoginDate, Integer status, Integer clientPort,
			Integer clientFilePort, String clientIp, String image) {
		this.userPwd = userPwd;
		this.nickname = nickname;
		this.registerDate = registerDate;
		this.lastLoginDate = lastLoginDate;
		this.status = status;
		this.clientPort = clientPort;
		this.clientFilePort = clientFilePort;
		this.clientIp = clientIp;
		this.image = image;
	}

	/** full constructor */
	public User(String userPwd, String nickname, String sex, Date birthday,
			String name, Date registerDate, Date lastLoginDate, String image,
			Integer status, Integer clientPort, Integer clientFilePort, String clientIp) {
		this.userPwd = userPwd;
		this.nickname = nickname;
		this.sex = sex;
		this.birthday = birthday;
		this.name = name;
		this.registerDate = registerDate;
		this.lastLoginDate = lastLoginDate;
		this.image = image;
		this.status = status;
		this.clientPort = clientPort;
		this.clientFilePort = clientFilePort;
		this.clientIp = clientIp;
	}

	// Property accessors

	public long getSysId() {
		return this.sysId;
	}

	public void setSysId(long sysId) {
		this.sysId = sysId;
	}

	public String getUserPwd() {
		return this.userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getRegisterDate() {
		return this.registerDate;
	}

	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}

	public Date getLastLoginDate() {
		return this.lastLoginDate;
	}

	public void setLastLoginDate(Date lastLoginDate) {
		this.lastLoginDate = lastLoginDate;
	}

	public String getImage() {
		return this.image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getClientPort() {
		return this.clientPort;
	}

	public void setClientPort(Integer clientPort) {
		this.clientPort = clientPort;
	}

	public Integer getClientFilePort() {
		return this.clientFilePort;
	}

	public void setClientFilePort(Integer clientFilePort) {
		this.clientFilePort = clientFilePort;
	}

	public String getClientIp() {
		return clientIp;
	}

	public void setClientIp(String clientIp) {
		this.clientIp = clientIp;
	}
	
	@Override
	public String toString() {
		return "SysId:" + getSysId() + 
		" nickname:" + getNickname() + 
		" userPwd:" + getUserPwd() + 
		" sex:" + getSex() + 
		" birthday:" + getBirthday() +
		" name:" + getName()+
		" status:" +getStatus()+ 
		" client/filePort:"+getClientPort()+"/"+getClientFilePort();
	}
}